Optimal. Leaf size=105 \[ -\frac {32 a^3 \left (a x^2+b x^3\right )^{3/2}}{315 b^4 x^3}+\frac {16 a^2 \left (a x^2+b x^3\right )^{3/2}}{105 b^3 x^2}-\frac {4 a \left (a x^2+b x^3\right )^{3/2}}{21 b^2 x}+\frac {2 \left (a x^2+b x^3\right )^{3/2}}{9 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2016, 2002, 2014} \[ -\frac {32 a^3 \left (a x^2+b x^3\right )^{3/2}}{315 b^4 x^3}+\frac {16 a^2 \left (a x^2+b x^3\right )^{3/2}}{105 b^3 x^2}-\frac {4 a \left (a x^2+b x^3\right )^{3/2}}{21 b^2 x}+\frac {2 \left (a x^2+b x^3\right )^{3/2}}{9 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2002
Rule 2014
Rule 2016
Rubi steps
\begin {align*} \int x^2 \sqrt {a x^2+b x^3} \, dx &=\frac {2 \left (a x^2+b x^3\right )^{3/2}}{9 b}-\frac {(2 a) \int x \sqrt {a x^2+b x^3} \, dx}{3 b}\\ &=\frac {2 \left (a x^2+b x^3\right )^{3/2}}{9 b}-\frac {4 a \left (a x^2+b x^3\right )^{3/2}}{21 b^2 x}+\frac {\left (8 a^2\right ) \int \sqrt {a x^2+b x^3} \, dx}{21 b^2}\\ &=\frac {2 \left (a x^2+b x^3\right )^{3/2}}{9 b}+\frac {16 a^2 \left (a x^2+b x^3\right )^{3/2}}{105 b^3 x^2}-\frac {4 a \left (a x^2+b x^3\right )^{3/2}}{21 b^2 x}-\frac {\left (16 a^3\right ) \int \frac {\sqrt {a x^2+b x^3}}{x} \, dx}{105 b^3}\\ &=\frac {2 \left (a x^2+b x^3\right )^{3/2}}{9 b}-\frac {32 a^3 \left (a x^2+b x^3\right )^{3/2}}{315 b^4 x^3}+\frac {16 a^2 \left (a x^2+b x^3\right )^{3/2}}{105 b^3 x^2}-\frac {4 a \left (a x^2+b x^3\right )^{3/2}}{21 b^2 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 53, normalized size = 0.50 \[ \frac {2 \left (x^2 (a+b x)\right )^{3/2} \left (-16 a^3+24 a^2 b x-30 a b^2 x^2+35 b^3 x^3\right )}{315 b^4 x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 62, normalized size = 0.59 \[ \frac {2 \, {\left (35 \, b^{4} x^{4} + 5 \, a b^{3} x^{3} - 6 \, a^{2} b^{2} x^{2} + 8 \, a^{3} b x - 16 \, a^{4}\right )} \sqrt {b x^{3} + a x^{2}}}{315 \, b^{4} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 131, normalized size = 1.25 \[ \frac {32 \, a^{\frac {9}{2}} \mathrm {sgn}\relax (x)}{315 \, b^{4}} + \frac {2 \, {\left (\frac {9 \, {\left (5 \, {\left (b x + a\right )}^{\frac {7}{2}} - 21 \, {\left (b x + a\right )}^{\frac {5}{2}} a + 35 \, {\left (b x + a\right )}^{\frac {3}{2}} a^{2} - 35 \, \sqrt {b x + a} a^{3}\right )} a \mathrm {sgn}\relax (x)}{b^{3}} + \frac {{\left (35 \, {\left (b x + a\right )}^{\frac {9}{2}} - 180 \, {\left (b x + a\right )}^{\frac {7}{2}} a + 378 \, {\left (b x + a\right )}^{\frac {5}{2}} a^{2} - 420 \, {\left (b x + a\right )}^{\frac {3}{2}} a^{3} + 315 \, \sqrt {b x + a} a^{4}\right )} \mathrm {sgn}\relax (x)}{b^{3}}\right )}}{315 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 57, normalized size = 0.54 \[ -\frac {2 \left (b x +a \right ) \left (-35 b^{3} x^{3}+30 a \,b^{2} x^{2}-24 a^{2} b x +16 a^{3}\right ) \sqrt {b \,x^{3}+a \,x^{2}}}{315 b^{4} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.46, size = 53, normalized size = 0.50 \[ \frac {2 \, {\left (35 \, b^{4} x^{4} + 5 \, a b^{3} x^{3} - 6 \, a^{2} b^{2} x^{2} + 8 \, a^{3} b x - 16 \, a^{4}\right )} \sqrt {b x + a}}{315 \, b^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.49, size = 62, normalized size = 0.59 \[ \frac {2\,\sqrt {b\,x^3+a\,x^2}\,\left (-16\,a^4+8\,a^3\,b\,x-6\,a^2\,b^2\,x^2+5\,a\,b^3\,x^3+35\,b^4\,x^4\right )}{315\,b^4\,x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {x^{2} \left (a + b x\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________